package com.example.mutildatasource.service.impl;

import com.example.mutildatasource.entity.Clazz;
import com.example.mutildatasource.mapper.primary.ClazzMapper;
import com.example.mutildatasource.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClazzServiceImpl implements ClazzService {

    @Autowired
    private ClazzMapper clazzMapper;

    public List<Clazz> getAllByCondition() {
        return clazzMapper.getAllByCondition();
    }

    public Clazz selectByPrimaryKey(Long id){
        return clazzMapper.selectByPrimaryKey(id);
    }
}
